package jface.data;

import java.util.ArrayList;
import java.util.Collection;

public class Person {
	
	public enum Gender {male, female, unknown};
	
	private String firstName;
	private String lastName;
	private int age;
	private Gender gender;
	
	
	private Collection<Person> employees;
	private Person manager;
	
	public Person(String firstName, String lastName, int age, Gender gender) {
		super();
		this.firstName = firstName;
		this.lastName = lastName;
		this.age = age;
		this.gender = gender;
		this.employees = new ArrayList<Person>();
		this.manager = this;
	}
	
	public Person(String firstName, String lastName, int age, Gender gender,
			Collection<Person> employees, Person manager) {
		super();
		this.firstName = firstName;
		this.lastName = lastName;
		this.age = age;
		this.gender = gender;
		this.employees = employees;
		this.manager = manager;
	}



	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Gender getGender() {
		return gender;
	}
	public void setGender(Gender gender) {
		this.gender = gender;
	}
	public Collection<Person> getEmployees() {
		return employees;
	}
	public Person getManager() {
		return manager;
	}
}
